package org.example.maven.service.Impl;

import org.example.maven.common.RedisCommon;
import org.example.maven.service.codeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class codeServiceImpl implements codeService {

    @Autowired
    private RedisCommon redisCache;
    @Override
    public boolean checkCode(String code, String uuid) {
        return redisCache.checkCodeIsTure(uuid,code);
    }
}
